package com.examplespring.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * @author SWJ
 * @create 2021-07-12 8:06
 */
@RestController
/**
 * REST控制器
 * */
public class HelloController {
    @RequestMapping("hi")//可被浏览器访问
    public void hi() {
//        return "This is springboot";
        System.out.println("hello springboot-");
    }

}
